package com.vimi8.ebb.auth.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import com.vimi8.ebb.auth.model.AuthUser;
import com.vimi8.ebb.auth.model.UserOrg;
import io.swagger.annotations.ApiModelProperty;





/**
 * AuthUserDto
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-17T07:44:10.629Z")

public class AuthUserDto extends AuthUser {
  private String clientId = null;
  private String clientOrgClass = null;
  private String scopes = null;
  private String orgClassName = null;

  private String openId = null;
  private String job=null;
  private String password=null;
  private List<UserOrg> joinUserOrg=new ArrayList<>();
  private List<UserOrg> followUserOrg=new ArrayList<>();
  private int isFreeze;//是否冻结
  private int isShakePoverty;//是否贫困

  public List<UserOrg> getFollowUserOrg() {
    return followUserOrg;
  }

  public void setFollowUserOrg(List<UserOrg> followUserOrg) {
    this.followUserOrg = followUserOrg;
  }

  public int getIsShakePoverty() {
    return isShakePoverty;
  }

  public void setIsShakePoverty(int isShakePoverty) {
    this.isShakePoverty = isShakePoverty;
  }

  public int getIsFreeze() {
    return isFreeze;
  }

  public void setIsFreeze(int isFreeze) {
    this.isFreeze = isFreeze;
  }

  public List<UserOrg> getJoinUserOrg() {
    return joinUserOrg;
  }

  public void setJoinUserOrg(List<UserOrg> joinUserOrg) {
    this.joinUserOrg = joinUserOrg;
  }


  public String getJob() {
    return job;
  }

  public void setJob(String job) {
    this.job = job;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public AuthUserDto clientId(String clientId) {
    this.clientId = clientId;
    return this;
  }


  /**
   * 客服端id.
   * @return clientId
  **/
  @ApiModelProperty(value = "客服端id.")
  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public AuthUserDto clientOrgClass(String clientOrgClass) {
    this.clientOrgClass = clientOrgClass;
    return this;
  }

   /**
   * 客服端组织类型.
   * @return clientOrgClass
  **/
  @ApiModelProperty(value = "客服端组织类型.")
  public String getClientOrgClass() {
    return clientOrgClass;
  }

  public void setClientOrgClass(String clientOrgClass) {
    this.clientOrgClass = clientOrgClass;
  }

  public AuthUserDto scopes(String scopes) {
    this.scopes = scopes;
    return this;
  }

   /**
   * (可选)申请加入的部门-未填时,加入默认部门.
   * @return scopes
  **/
  @ApiModelProperty(value = "(可选)申请加入的部门-未填时,加入默认部门.")
  public String getScopes() {
    return scopes;
  }

  public void setScopes(String scopes) {
    this.scopes = scopes;
  }

  public AuthUserDto orgClassName(String orgClassName) {
    this.orgClassName = orgClassName;
    return this;
  }

   /**
   * 机构名称.
   * @return orgClassName
  **/
  @ApiModelProperty(value = "机构名称.")
  public String getOrgClassName() {
    return orgClassName;
  }

  public void setOrgClassName(String orgClassName) {
    this.orgClassName = orgClassName;
  }

  public AuthUserDto openId(String openId) {
    this.openId = openId;
    return this;
  }

   /**
   * openId.
   * @return openId
  **/
  @ApiModelProperty(value = "openId.")
  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AuthUserDto authUserDto = (AuthUserDto) o;
    return Objects.equals(this.clientId, authUserDto.clientId) &&
        Objects.equals(this.clientOrgClass, authUserDto.clientOrgClass) &&
        Objects.equals(this.scopes, authUserDto.scopes) &&
        Objects.equals(this.orgClassName, authUserDto.orgClassName) &&
        Objects.equals(this.openId, authUserDto.openId) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientId, clientOrgClass, scopes, orgClassName, openId, super.hashCode());
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AuthUserDto {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("    clientOrgClass: ").append(toIndentedString(clientOrgClass)).append("\n");
    sb.append("    scopes: ").append(toIndentedString(scopes)).append("\n");
    sb.append("    orgClassName: ").append(toIndentedString(orgClassName)).append("\n");
    sb.append("    openId: ").append(toIndentedString(openId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

